var status = 0;

function start() {
    status = -1;
    action(1, 0, 0);
}
 
function action(mode, type, selection) {
	if (mode == -1) {
        	cm.dispose();
	} else {
        	if (mode == 0 && status == 0) {
			cm.sendOk("Have fun in #rHappy ville#k!\r\nTalk with me if you want to leave");
        		cm.dispose();
        		return;
        	}
        	if (mode == 1)
            		status++;
	        else
        		status--;
	        if (status == 0) {
			cm.sendYesNo("Wanna go back to #rEllinia#k?");
		} else {
			cm.warp(101000000);
			cm.dispose();
		}
	}
}